const { io } = require('socket.io-client')
import { Socket } from 'socket.io'

export const initSocket = (): Socket => {
  /* eslint-disable */
  //@ts-ignore
  let url = import.meta.env['MAIN_VITE_SOCKET_URL']
  return io(url)
}
